package com.lhc.bean;

import lombok.Data;

/**
 * @author LuHuanCheng
 * 类说明：方式2：FactoryMethod创建bean
 */
@Data
public class FactoryMethodBean2 {
    private String name = "i am actoryMethodBean2";

    //factory-method本类并且为静态方法
    public static FactoryMethodBean2 createfactoryMethod() {
        return new FactoryMethodBean2();
    }
}
